<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>strsubst</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>strsubst</b> -  substitute  a character string by another in a  character string.  </p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>str=strsubst(str1,str2,str3)  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>str1</b>
        </tt>: a matrix of character string. The strings where to search occurrences of <tt>
          <b>str2</b>
        </tt>
      </li>
      <li>
        <tt>
          <b>str2</b>
        </tt>: a character string. The string to search in <tt>
          <b>str1</b>
        </tt>.</li>
      <li>
        <tt>
          <b>str3</b>
        </tt>: a character string. The replacement string.</li>
      <li>
        <tt>
          <b>str</b>
        </tt>: a matrix of character string. The result of the substitution on  <tt>
          <b>str2</b>
        </tt> by  <tt>
          <b>str3</b>
        </tt> in  <tt>
          <b>str1</b>
        </tt>
      </li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      <tt>
        <b>strsubst</b>
      </tt> replaces all occurrences of <tt>
        <b>str2</b>
      </tt> in <tt>
        <b>str1</b>
      </tt> by <tt>
        <b>str3</b>
      </tt>.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

strsubst('SCI/demos/scicos','SCI','.')
strsubst('SCI/demos/scicos','/',' ')
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="string.htm">
        <tt>
          <b>string</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="strings.htm">
        <tt>
          <b>strings</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
